/*
SPI2.c
*/

#define CS_ADC		PORTBbits.RB13  // Chip Select ADC

void SPI2_Delay(long int cycles);
unsigned char Read_SPI2_ADC(void);
void Write_SPI2_ADC(unsigned char data_out);
unsigned int gets_SPI2_ADC(unsigned int length, unsigned int *rdptr,unsigned int spi_data_wait);
void puts_SPI2_ADC(unsigned int length, unsigned int *wrptr);
